package cn.wolfcode.shop.cloud.util;

import cn.wolfcode.shop.cloud.common.CodeMsg;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class GoodCodeMessage extends CodeMsg {

    public static final GoodCodeMessage REMOTE_GOOD_ERROR = new GoodCodeMessage(50301,"商品服务异常" );
    public static final GoodCodeMessage USER_ERROR = new GoodCodeMessage(50401,"非法操作");
    public static final GoodCodeMessage SECKILL_ERROR =new GoodCodeMessage(50501,"不处于秒杀状态");
    public static final GoodCodeMessage SECKILLORDER_ERROR = new GoodCodeMessage(50601,"您已经秒杀过了");
    public static final GoodCodeMessage SECKILL_STOCK_ERROR = new GoodCodeMessage(50602,"商品库存不足");
    public static final GoodCodeMessage ORDERINFO_LOGIN_ERROR = new GoodCodeMessage(50701,"请先登录");
    public static final GoodCodeMessage ORDERINFO_MISTAKE_ERROR = new GoodCodeMessage(50702,"非法操作");
    public static final GoodCodeMessage ORDERINFO_ISEQL_ERROR = new GoodCodeMessage(50703,"当前的数据您没有权限浏览");
    public static final GoodCodeMessage SECKILL_GOOD_FAIL = new GoodCodeMessage(50603,"秒杀商品失败");
    public static final GoodCodeMessage SECKILL_VERIFY_FAIL = new GoodCodeMessage(50701,"您输入的验证码错误");
    public static final GoodCodeMessage SECKILL_VERIFY_EMPTY = new GoodCodeMessage(50702,"您输入的验证码为空");

    public GoodCodeMessage() {
    }

    public GoodCodeMessage(int code, String msg) {
        super(code, msg);
    }
}
